<?php require_once('Connections/aciitu.php'); ?>
<?php
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_aciitu, $aciitu);
$query_RsTitulo = "SELECT * FROM titulo";
$RsTitulo = mysql_query($query_RsTitulo, $aciitu) or die(mysql_error());
$row_RsTitulo = mysql_fetch_assoc($RsTitulo);
$totalRows_RsTitulo = mysql_num_rows($RsTitulo);

mysql_select_db($database_aciitu, $aciitu);
$query_RsSlide = "SELECT * FROM slide where status = 1";
$RsSlide = mysql_query($query_RsSlide, $aciitu) or die(mysql_error());
$row_RsSlide = mysql_fetch_assoc($RsSlide);
$totalRows_RsSlide = mysql_num_rows($RsSlide);

mysql_select_db($database_aciitu, $aciitu);
$query_RsIntit = "SELECT * FROM pagina where pagina_tipo = 4 Order by id desc";
$RsIntit = mysql_query($query_RsIntit, $aciitu) or die(mysql_error());
$row_RsIntit = mysql_fetch_assoc($RsIntit);
$totalRows_RsIntit = mysql_num_rows($RsIntit);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $row_RsTitulo['nome_titulo']; ?></title>

<link type="text/css" href="css/css.css" rel="stylesheet" />

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image:url(imagens/fundo.jpg); background-repeat:repeat-x; background-position:top;
	background-color:#ffffff;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style></head>

<body>

<center>

<table width="973" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
    
    <!--INTRO-->
    <table width="973" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="213" valign="top"><?php $i = 1; if($i == 1){ include("intro.php"); } ?></td>
      </tr>
    </table>
    <!--FIM INTRO-->
    
    <!--CONTEUDO-->
    <br /><br>
    <table width="973" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><span class="tit_imoveis_pag"><?php echo $row_RsIntit['titulo']; ?></span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><span class="conteudo_pag"><?php echo $row_RsIntit['conteudo']; ?></span></td>
      </tr>
    </table>
    <!--FIM CONTEUDO-->
    
    
    <br /><br />
    
    <!--RODAPE-->
    <table width="973" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><?php $i = 1; if($i == 1){ include("rodape.php"); } ?></td>
      </tr>
    </table>
    <!--FIM RODAPE-->
    
    </td>
  </tr>
</table>

</center>

</body>
</html>
<?php
mysql_free_result($RsTitulo);

mysql_free_result($RsIntit);
?>
